﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.IO;

namespace source
{
    public partial class UcenikKontrola : UserControl
    {
        public UcenikKontrola()
        {
            InitializeComponent();
        }
        public UcenikKontrola(Ucenik ucenik)
        {
            InitializeComponent();
            System.Reflection.Assembly myAssembly = System.Reflection.Assembly.GetExecutingAssembly();
            Stream myStream = myAssembly.GetManifestResourceStream("source.33.jpg");

            pictureBox1.BackgroundImage = new Bitmap(myStream);
            pictureBox1.BackgroundImageLayout = ImageLayout.Stretch;
            label2.Text = ucenik.Ime;
            label4.Text = ucenik.Prezime;
            label6.Text = ucenik.Otac;
            label8.Text = ucenik.Majka;
            label10.Text = ucenik.DatumRodjenja.ToShortDateString();
            label12.Text = ucenik.Adresa;
            label14.Text = ucenik.Telefon;
            label16.Text = ucenik.Email;
            label18.Text = ucenik.Drzavljanstvo;
            //label20.Text = ucenik.dajRazred;
        }
    }
}
